package com.zide.auth.mapper.platform;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.zide.auth.domain.entity.platform.PlatformConfig;
import com.zide.auth.vo.search.config.PlatformConfigSearchVO;
import com.zide.common.config.mybatisplus.ZiDeMapperPlus;
import com.zide.common.core.domain.PageResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author 石添添
 * @description
 * @date 2024-09-24 20:25
 */
@Mapper
public interface PlatformConfigMapper extends ZiDeMapperPlus<PlatformConfig> {

    PlatformConfig selectConfig(@Param("config") PlatformConfig config);

    default PageResult<PlatformConfig> selectPage(PlatformConfigSearchVO configVO) {
        LambdaQueryWrapper<PlatformConfig> wrapper = new LambdaQueryWrapper<>();

        return selectPage(configVO,wrapper);
    }
}
